package com.ma.mapper;


import com.ma.entity.SysMenu;
import com.ma.entity.SysRole;
import org.springframework.stereotype.Repository;

import javax.management.relation.Role;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 */
@Repository
public interface SysRoleMapper  {
    public List<SysRole> selectAll();

    List<SysRole> selectCodeById(Long id);

    SysRole selectAllById(Long id);


    List<SysRole> listByUsername(String username);

    void save(SysRole sysRole);

    void update(SysRole sysRole);

    void delete(Long id);

    List<SysRole> getAllByUserId(Long id);
}
